package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author 张永远
 * @since 2020-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_amazon")
public class OrderAmazonDo extends Model<OrderAmazonDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 亚马逊订单编号
     */
    @TableField("amazon_order_number")
    private String amazonOrderNumber;

    /**
     * 卖家定义的订单编号
     */
    @TableField("seller_order_number")
    private String sellerOrderNumber;

    /**
     * 购买时间
     */
    @TableField("purchase_date")
    private Date purchaseDate;

    /**
     * 购买时间
     */
    @TableField("last_update_date")
    private Date lastUpdateDate;

    /**
     * 订单状态
     */
    @TableField("order_status")
    private String orderStatus;

    /**
     *  Amazonが出荷(AFN)、出品者が出荷(MFN)
     */
    @TableField("fulfillment_channel")
    private String fulfillmentChannel;

    /**
     * 销售渠道
     */
    @TableField("sales_channel")
    private String salesChannel;

    /**
     * 订单路径
     */
    @TableField("order_channel")
    private String orderChannel;

    /**
     * 派送服务类型
     */
    @TableField("ship_service_level")
    private String shipServiceLevel;

    /**
     * 订单寄送地址
     */
    @TableField("ship_address")
    private String shipAddress;

    /**
     * 收货人姓名
     */
    @TableField("ship_name")
    private String shipName;

    /**
     * 收货城市
     */
    @TableField("ship_city")
    private String shipCity;

    /**
     * 收货人国家
     */
    @TableField("ship_county")
    private String shipCounty;

    /**
     * 收货人地区
     */
    @TableField("ship_district")
    private String shipDistrict;

    /**
     * 收货人地域
     */
    @TableField("ship_state_or_region")
    private String shipStateOrRegion;

    /**
     * 收货人邮编
     */
    @TableField("postal_code")
    private String postalCode;

    /**
     * 收货人电话
     */
    @TableField("ship_phone")
    private String shipPhone;

    /**
     * 收货人地址类型 Commercial, Residential
     */
    @TableField("ship_address_type")
    private String shipAddressType;

    /**
     * 付款方式 COD CVS
     */
    @TableField("payment_method")
    private String paymentMethod;

    /**
     * COD 代收款金额
     */
    @TableField("payment_cod")
    private String paymentCod;

    /**
     * 购买人邮箱
     */
    @TableField("buyer_email")
    private String buyerEmail;

    /**
     * 购买人name
     */
    @TableField("buyer_name")
    private String buyerName;

    /**
     * 购买人name
     */
    @TableField("shipment_service_level_category")
    private String shipmentServiceLevelCategory;

    /**
     * 订单类型  StandardOrder Preorder 
     */
    @TableField("order_type")
    private String orderType;

    /**
     * 最早发货日期
     */
    @TableField("earliest_ship_date")
    private Date earliestShipDate;

    /**
     * 最晚发货日期
     */
    @TableField("last_ship_date")
    private Date lastShipDate;

    /**
     * 最早送达日期
     */
    @TableField("earliest_delivery_date")
    private Date earliestDeliveryDate;

    /**
     * 最晚送达日期
     */
    @TableField("last_delivery_date")
    private Date lastDeliveryDate;

    /**
     * 采购单号
     */
    @TableField("purchase_order_number")
    private String purchaseOrderNumber;

    /**
     * 订单总金额
     */
    @TableField("order_total")
    private String orderTotal;

    /**
     * 是否发货
     */
    @TableField("is_send_out")
    private Integer isSendOut;

    /**
     * 是否回传运单号
     */
    @TableField("is_upload_track_no")
    private Integer isUploadTrackNo;

    /**
     * 系统备注
     */
    @TableField("system_memo")
    private String systemMemo;
    @TableField("commodity_sku")
    private String commoditySku;
    @TableField("shop_id")
    private Long shopId;

    @TableField("company_id")
    private Long companyId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
